$OpenBSD: patch-configure_in,v 1.2 2016/06/02 11:52:32 sthen Exp $
--- configure.in.orig	Thu Jan 14 11:55:01 2016
+++ configure.in	Sat May 21 11:35:39 2016
@@ -25,7 +25,6 @@ AC_PROG_RANLIB
 dnl initial checks; tweakings to CFLAGS and LDFLAGS
 dnl see final checks for tweakings to LIBS
 if test "x$ac_cv_prog_gcc" = xyes ; then
-  CFLAGS="-O2 ${CFLAGS}"
   case "$host_os" in
     IRIX*)
       CFLAGS="-mabi=n32 -fno-builtins"
@@ -542,9 +541,6 @@ AC_ARG_ENABLE(mysql,
     # Adding these as prerequisite for MySQL 5.6 
     AC_CHECK_LIB([stdc++], [main], [LIBS="${LIBS} -lstdc++"], [AC_MSG_ERROR([
       ERROR: missing libstdc++ devel. Requirement for building MySQL.
-    ])])
-    AC_CHECK_LIB([rt], [clock_gettime], [LIBS="${LIBS} -lrt"], [AC_MSG_ERROR([
-      ERROR: missing librt devel. Requirement for building MySQL.
     ])])
 
     AC_ARG_WITH(mysql-includes,
